package com.cloud.pole.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cloud.pole.api.advert.AdvertApi;
import com.cloud.pole.common.constant.ApiConstant;
import com.cloud.pole.common.msg.ApiRestResponse;
import java.util.List;


/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-21 8:11
 */
@FeignClient(value = ApiConstant.ADVERT_SERVICE_ID)
public interface IAdvertService {
	
  @RequestMapping(value=ApiConstant.ADVERT_SERVICE_ADVERT_GETADVERTLIST, method = RequestMethod.GET)
  public ApiRestResponse<List<AdvertApi>> getAdvertList(@RequestParam(name="advertPosId", defaultValue = "0") Integer advertPosId);
  
  @RequestMapping(value=ApiConstant.ADVERT_SERVICE_ADVERT_GETSHOPADVERTLIST, method = RequestMethod.GET)
  public ApiRestResponse<List<AdvertApi>> getShopAdvertList(
		  @RequestParam(name="shopId", defaultValue = "0") Integer shopId, 
		  @RequestParam(name="advertPosId", defaultValue = "0") Integer advertPosId);
  
  @RequestMapping(value=ApiConstant.ADVERT_SERVICE_ADVERT_MODIFYSHOPADVERTLIST, method = RequestMethod.GET)
  public ApiRestResponse<Boolean> modifyShopAdvertList(
		  @RequestParam(name="shopId", defaultValue = "0") Integer shopId, 
		  @RequestParam(name="merchantId", defaultValue = "0") Integer merchantId,	  
		  @RequestParam(name="advertPosId", defaultValue = "0") Integer advertPosId,
		  @RequestParam(name="advertList")  List<String> advertList);
}
